<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Dart : Libraries : box2d : Distance</title>
</head>

<body>

<header></header>

<h1 id="title">class <a name='Distance::Distance'>Distance</a></h1>

<section id="inheritance">

<section class="supertype">
<h2>Supertype:</h2>
<ul><li>Object</li></ul>
</section>

</section>

<section id="summary">

 This is non-static for faster pooling. To get an instance,
 use the SingletonPool rather than construct a distance object.
</section>

<section id="fields">
<h2>Fields</h2>
<dl>
<dt>
<span class="field-type"><code><code><a href='int.html#int::int'>int</a></code></code></span>
<span class="field-name"><code><a name='Distance::calls'>calls
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='Vector.html#Vector::Vector'>Vector</a></code></code></span>
<span class="field-name"><code><a name='Distance::closestPoint'>closestPoint
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='int.html#int::int'>int</a></code></code></span>
<span class="field-name"><code><a name='Distance::iters'>iters
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='int.html#int::int'>int</a></code></code></span>
<span class="field-name"><code><a name='Distance::maxIters'>maxIters
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='Vector.html#Vector::Vector'>Vector</a></code></code></span>
<span class="field-name"><code><a name='Distance::normal'>normal
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='List.html#List::List'>List&lt;E&gt;</a></code></code></span>
<span class="field-name"><code><a name='Distance::saveA'>saveA
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='List.html#List::List'>List&lt;E&gt;</a></code></code></span>
<span class="field-name"><code><a name='Distance::saveB'>saveB
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='Vector.html#Vector::Vector'>Vector</a></code></code></span>
<span class="field-name"><code><a name='Distance::searchDirection'>searchDirection
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='Simplex.html#Simplex::Simplex'>Simplex</a></code></code></span>
<span class="field-name"><code><a name='Distance::simplex'>simplex
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='Vector.html#Vector::Vector'>Vector</a></code></code></span>
<span class="field-name"><code><a name='Distance::temp'>temp
</a></code></span>
</dt>
<dd>
</dd>
</dl>
</section>

<section id="constructors">
</section>

<section id="methods">
<h2>Methods</h2>
<dl>
<dt>
<code>void <a name='Distance::distance'>distance</a>(<code><a href='DistanceOutput.html#DistanceOutput::DistanceOutput'>DistanceOutput</a></code> <a name='Distance::distance::output'>output</a>, <code><a href='SimplexCache.html#SimplexCache::SimplexCache'>SimplexCache</a></code> <a name='Distance::distance::cache'>cache</a>, <code><a href='DistanceInput.html#DistanceInput::DistanceInput'>DistanceInput</a></code> <a name='Distance::distance::input'>input</a>)</code></dt>
<dd>

 Compute the closest points between two shapes. Supports any combination of:
 CircleShape and PolygonShape. The simplex cache is input/output.
 On the first call set SimplexCache.count to zero.
</dd>
</dl>
</section>

<footer></footer>

</body></html>
